{extend name='admin@main'}

{block name="content"}

{include file='store@goods/form_style'}
<div class="layui-card-body think-box-shadow padding-left-40">
  <div class="layui-tab">
    
    <ul class="layui-tab-title">
      <li class="layui-this">商家基本信息</li>
      {if auth("member/business/integral")}
      <li ><a data-open="{:url('integral')}?id={$userinfo.id}">积分详情</a></li>
      {/if}
      {if auth("member/business/charge")}
      <li ><a data-open="{:url('charge')}?id={$userinfo.id}">发布豆详情</a></li>
      {/if}
    </ul>
    <div class="layui-tab-content">
      <div class="layui-tab-item layui-show">
        <fieldset class="layui-elem-field layui-field-title" >
          <legend>基本信息</legend>
        </fieldset>
        <form class="layui-form layui-form-pane" action="">

          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">会员ID</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.id}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">微信名</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.wechat_nickname}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">联系电话</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.mobile}" readonly="" autocomplete="off" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">邮箱</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.email}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">openid</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.wechat_openid}" autocomplete="off"  class="layui-input" type="text">
              </div>
            </div>
          </div>

          <div class="layui-form-item">
            
          
            <div class="layui-inline">
              <label class="layui-form-label">所在省</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.province}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">所在市</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.city}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">所在地区</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.county}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">认证类型</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.type}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>

            <div class="layui-inline">
              <label class="layui-form-label">认证状态</label>
              <div class="layui-input-inline">
                <input name="number" value="{$userinfo.status}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
          </div>
        </form>
        <fieldset class="layui-elem-field layui-field-title" >
          <legend>认证信息</legend>
        </fieldset>
        <form class="layui-form layui-form-pane" action="">

          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">公司名称</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.company_name}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">法人姓名</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.legal_person_name}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">公司地址</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.company_address}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">电话</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.company_mobile}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">身份证号</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.legal_person_id_card}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            
          </div>

          <div class="layui-form-item">

            <div class="layui-inline">
              <label class="layui-form-label">营业执照号</label>
              <div class="layui-input-inline">
                <input name="number" value="{$extend.company_license}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
          </div>
          <div class="layui-form-item">
            
            <div class="layui-inline">
              <label class="layui-form-label">身份证正面</label>
              <div class="layui-input-inline">
                <a data-tips-image="{$extend.id_card_zm_img|default=''}" >
                 <img style="width: 200px;height: 200px;" src="{$extend.id_card_zm_img}"></a>
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">身份证反面</label>
              <div class="layui-input-inline">
                <a data-tips-image="{$extend.id_card_bm_img|default=''}" >
                <img style="width: 200px;height: 200px;" src="{$extend.id_card_bm_img}"></a>
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">营业执照</label>
              <div class="layui-input-inline">
                <a data-tips-image="{$extend.company_license_img|default=''}" >
                  <img style="width: 200px;height: 200px;" src="{$extend.company_license_img}"></a>
              </div>
            </div>
          </div>
        </form>
      </div>
</div>
</div>
  </div>

{/block}

{block name='script'}

<script>
  window.form.render();
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
      elem: '#test1'
    });
    laydate.render({
      elem: '#test2'
    });
    
  });

  require(['ckeditor', 'angular'], function () {
     window.createEditor('[name="content"]', {height: 200});
     window.createEditor('[name="content1"]', {height: 200});
     window.createEditor('[name="content2"]', {height: 200});
   });
</script>

{/block}